=<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <% %>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
	     <title>后台管理系统</title>
     	 <script src="js/jquery-3.7.1.js" ></script>
	    <link href="css/font-awesome.min.css" rel="stylesheet">
	    <link href="css/bootstrap.min.css" rel="stylesheet">
	    <link href="css/templatemo-style.css" rel="stylesheet">
	    
	
	</head>
	<body class="light-gray-bg">
		<div class="templatemo-content-widget templatemo-login-widget white-bg">
			<header class="text-center">
	          <div class="square"></div>
	          <h1>Admin</h1>
	        </header>
	        <form action="indexServlet"  class="templatemo-login-form" id="from" method="post">
	        	<div class="form-group">
	        		<div class="input-group">
		        		<div class="input-group-addon"><i class="fa fa-user fa-fw"></i></div>	        		
		              	<input type="text" id="username" name="username" class="form-control" value="" placeholder="管理员账号">           
		          	</div>	
	        	</div>
	        	<div class="form-group">
	        		<div class="input-group">
		        		<div class="input-group-addon"><i class="fa fa-key fa-fw"></i></div>	        		
		              	<input type="password" id="userpass" name="userpass" class="form-control" value="" placeholder="密码">           
		          	</div>	
	        	</div>	          	
	          	<div class="form-group">
				    <div class="checkbox squaredTwo">
				        <input type="checkbox" id="c1" name="cc" />
						<label for="c1"><span></span>记住我</label>
				    </div>				    
				</div>
				<div class="form-group">
					<button type="button" class="templatemo-blue-button width-100">Login</button>
				</div>
	        </form>
		</div>
		<div class="templatemo-content-widget templatemo-login-widget templatemo-register-widget white-bg">
			<p>还不是注册用户？ <strong><a href="#" class="blue-text">立即注册！</a></strong></p>
		</div>
	</body>
	<script>
	$(":button").bind("click",function(){
		if( $("#username").val() === ''){
			  alert("用户名不能为空");
		  }else if($("#userpass").val() === ''){
			  alert("密码不能为空");
		  }else{
			  $("#from").submit();
		  }
   });	 
	
	</script>
</html>